package routers

import (
	"github.com/gin-gonic/gin"
	"mishop/controllers"
)

func InitCartRouter(router *gin.Engine) {
	p := router.Group("/cart")
	{
		controller := controllers.NewCart()
		p.GET("/", controller.All)
		//p.GET("/:cart_id", controller.Show)
		p.PUT("/:cart_id", controller.Update)
		p.DELETE("/:cart_id", controller.Delete)
		p.POST("/", controller.Store)
	}
}
